<template>
  <div class="tableInfo">
    <!-- 左侧图标 -->
    <div class="icnLeft" :style="iconBacgkrounds">
        {{icon}}
    </div>
    <div class="infoRight">
        <p style="line-height:35px">{{value}}</p>
    </div>
  </div>
</template>

<script>
export default {
    props:["icon","iconBacgkround","value"],
    data(){
        return{
            iconBacgkrounds:"background:"+this.iconBacgkround
        }
    }
}
</script>

<style lang="less" scoped>
    .tableInfo{
        margin-top: 5px;
        width: 100%;
        height: 35px;
        background:#a6a6a6 ;
        border-radius: 10px;
        padding-left: 10px;
        // position: relative;
        padding-top: 1px;
        .icnLeft{
            width: 23px;
            height: 23px;
            margin-top: 50px;
            border-radius: 50%;
            margin-top: 5px;
            // background: red;
            text-align: center;
            line-height: 23px;
            float: left;
        }
        .infoRight{
            width: 135px;
            height: 100%;
            // background: red;
            color:#fff;
            font-size: 10px;
            float: right;
            text-align: right;
            left: 30px;
            padding-right: 5px;
        }
    }

</style>